<!DOCTYPE html>

<!--
Copyright 2017 Google Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<html lang="en">
<head>

<script>
//  philipwalton.com/articles/the-google-analytics-setup-i-use-on-every-site-i-build
window.ga = window.ga || function() {
  (ga.q = ga.q || []).push(arguments);
};
ga('create', 'UA-33848682-1', 'auto');
ga('set', 'transport', 'beacon');
ga('send', 'pageview');
</script>
<script async src="https://www.google-analytics.com/analytics.js"></script>

<meta name="keywords" content="WebRTC, HTML5, JavaScript" />
<meta name="description" content="WebRTC code samples." />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<base target="_blank">
<title>Fullscreen video</title>

<link rel="stylesheet" href="../../css/main.css">

<style>
div.videoContainer {
  display: inline-block;
  width: calc(50% - 10px);
}
div.videoContainer:first-of-type {
  margin: 0 15px 0 0;
}
img {
  width: 100%;
}
video {
  display: none;
  max-width: 100%;
}
</style>

</head>

<body>

<div id="container">

  <h1><a href="../../index.html" title="simpl.info home page">simpl.info</a> Fullscreen video</h1>

  <div class="videoContainer" id="videoContainer0">
    <img src="images/thumbnail0.jpg" alt="Thumbnail image 0" />
    <video controls poster="images/thumbnail0.jpg">
      <source src="video/chrome.webm" type="video/webm" />
      <source src="video/chrome.mp4" type="video/mp4" />
      <p>This browser does not support the video element.</p>
    </video>
  </div>

  <div class="videoContainer" id="videoContainer1">
    <img src="images/thumbnail1.jpg" alt="Thumbnail image 1" />
    <video controls poster="images/thumbnail1.jpg">
      <source src="video/stories.webm" type="video/webm" />
      <source src="video/stories.mp4" type="video/mp4" />
      <p>This browser does not support the video element.</p>
    </video>
  </div>

  <p>Click or tap a thumbnail image to display video fullscreen.</p>

  <p id="status"></p>

  <script src="js/main.js"></script>

  <a href="https://github.com/samdutton/simpl/blob/gh-pages/fullscreen/video" title="View source for this page on GitHub" id="viewSource">View source on GitHub</a>

</div>
<script src="../../js/lib/ga.js"></script>
</body>
</html>
